"""bishe01 URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

from django.contrib import admin
from django.urls import path, re_path

from User import views

urlpatterns = [
    path('admin/', admin.site.urls),
    path('hello/', views.hello),

    path('', views.index, name='index'),  # 主页
    path('login/', views.login, name='login'),
    path('register/', views.register, name='register'),
    path('forget/', views.forget),
    path('profile/', views.profile),
    path('logout/', views.logout),

    path('gameSingle/', views.gameSingle, name='gameSingle'),
    path('discover/', views.discover, name='discover'),
    path('ranklist/', views.ranklist, name='ranklist'),
    path('about/', views.about, name='about'),
    path('discover/ajax_search/', views.ajax_search),
    path('game_search/', views.game_search),
    path('gameSingle/comment_control', views.comment_control),

    path('discover/login/', views.login),
    path('discover/register/', views.register),
    path('discover/forget/', views.forget),
    path('discover/profile/', views.profile),

    path('ranklist/login/', views.login),
    path('ranklist/register/', views.register),
    path('ranklist/forget/', views.forget),
    path('ranklist/profile/', views.profile),

    path('about/login/', views.login),
    path('about/register/', views.register),
    path('about/forget/', views.forget),
    path('about/profile/', views.profile),

    path('gameSingle/login/', views.login),
    path('gameSingle/register/', views.register),
    path('gameSingle/forget/', views.forget),
    path('gameSingle/profile/', views.profile),

]
